package com.guangzi.mapper;




import com.guangzi.common.Pager;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BaseDao {

    void save(Object obj);
    void remove(Object obj);
    void removeById(Long id);
    void update(Object obj);

    Object getById(Long id);
    List<Object> listAll();
    List<Object> listPager(Pager pager);
    Long count();

    List<Object> listPagerCriteria(Pager pager, Object obj);
    Long countCriteria(Object obj);




}
